from common.enum.error import ErrorEnum

TOKEN_INVALID_ERROR = ErrorEnum(
    code=401,
    msg='令牌错误或令牌过期，检查是否登录'
)

USER_NOT_EXISTS_ERROR = ErrorEnum(
    code=400,
    msg='用户不存在'
)

USER_NOT_EXISTS_OR_PASSWORD_ERROR = ErrorEnum(
    code=400,
    msg='用户不存在或密码错误'
)

PASSWORD_NOT_EQUAL_ERROR = ErrorEnum(
    code=400,
    msg='密码不一致'
)

USER_EXISTED_ERROR = ErrorEnum(
    code=400,
    msg='用户名已存在'
)

ADMIN_PERMISSION_ERROR = ErrorEnum(
    code=400,
    msg='非管理员，权限不足'
)